package com.kaiwukj.android.ufamily.di.module;

import com.kaiwukj.android.mcas.di.scope.FragmentScope;
import com.kaiwukj.android.ufamily.mvp.model.HomeV20Model;
import com.kaiwukj.android.ufamily.mvp.ui.page.home.home.contract.HomeV20Contract;

import dagger.Module;
import dagger.Provides;

@Module
public class HomeV20Module {

    private HomeV20Contract.View mView;
    private HomeV20Contract.ActiveView activeView;

    public HomeV20Module(HomeV20Contract.ActiveView view) {
        this.activeView = view;
    }

    public HomeV20Module(HomeV20Contract.View mView) {
        this.mView = mView;
    }

    @FragmentScope
    @Provides
    public HomeV20Contract.View provideView() {
        return mView;
    }

    @FragmentScope
    @Provides
    public HomeV20Contract.ActiveView provideActiveView() {
        return activeView;
    }

    @FragmentScope
    @Provides
    public HomeV20Contract.Model provideModel(HomeV20Model model) {
        return model;
    }

}
